package org.hxzon.tapestry5.util;

import java.math.BigDecimal;

import org.apache.tapestry5.services.Request;

public class RequestParameter {

    public static int getIntParameter(Request request, String name) {
        String value = request.getParameter(name);
        return Integer.valueOf(value);
    }

    public static BigDecimal getDecemalParameter(Request request, String name) {
        String value = request.getParameter(name);
        return new BigDecimal(value);
    }
}
